package com.kystar.muxplayer.model;


public class Settings {
    private PVWConfig mPVWConfig;
    private PGMConfig mPGMConfig;
    private Preset[] presets;
    private Source[] sources ;
    private Output mOutput;
    private Version version;

    public PVWConfig getPVWConfig() {
        return mPVWConfig;
    }

    public void setPVWConfig(PVWConfig PVWConfig) {
        mPVWConfig = PVWConfig;
    }

    public PGMConfig getPGMConfig() {
        return mPGMConfig;
    }

    public void setPGMConfig(PGMConfig PGMConfig) {
        mPGMConfig = PGMConfig;
    }

    public Preset[] getPresets() {
        return presets;
    }

    public void setPresets(Preset[] presets) {
        this.presets = presets;
    }

    public Source[] getSources() {
        return sources;
    }

    public void setSources(Source[] sources) {
        this.sources = sources;
    }

    public Version getVersion() {
        return version;
    }

    public void setVersion(Version version) {
        this.version = version;
    }

    public Output getOutput() {
        return mOutput;
    }

    public void setOutput(Output output) {
        mOutput = output;
    }

    public void update(PVWConfig pvwConfig) {

    }

    public int indexOf(Source s) {
        for (int i = 0; i < sources.length; i++) {
            if (sources[i].getType() == s.getType()) {
                return i;
            }
        }
        return -1;
    }
}
